R Markdown Presentation and Plotly
Author — Shivangi Mehta
Date — 10/23/2021
Instruction
Create a web page presentation using R Markdown that features a plot created with Plotly. Host your webpage on either GitHub Pages, RPubs, or NeoCities. Your webpage must contain the date that you created the document, and it must contain a plot created with Plotly. We would love to see you show off your creativity! Review criteria
The rubric contains the following two questions:
1.Does the web page feature a date and is this date less than two months before the date that you’re grading this assignment? 2.Is the web page a presentation and does it feature an interactive plot that appears to have been created with Plotly?
library(plotly)
## Loading required package: ggplot2
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
Product_a <- c(1:100)
x <- Product_a
x
## [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
## [19] 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
## [37] 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
## [55] 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
## [73] 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
## [91] 91 92 93 94 95 96 97 98 99 100
cost_of_product_a <- rnorm(100, mean=0)
y <- cost_of_product_a
data <- data.frame(x,y)
p <- plot_ly(data, x = ~x, y = ~y, type = 'scatter', mode = 'lines')
p